package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_apply_invoice")
@TableAlias("applyInvoice")
@ApiModel(value = "BusApplyInvoice对象", description = "")
public class BusApplyInvoice extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "applyInvoiceId", type = IdType.ASSIGN_ID)
    private Long applyInvoiceId;

    @ApiModelProperty(value = "申请人Id")
    private Long applyUserId;

    @ApiModelProperty(value = "用户产品Id")
    private Long userGoodsId;

    @ApiModelProperty(value = "发票类型（1电子发票，2专票,3普票）")
    private Integer invoiceType;

    @ApiModelProperty(value = "抬头类型")
    private Integer invoiceTitleType;

    @ApiModelProperty(value = "抬头名称")
    private String invoiceTitleName;

    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoiceAmount;

    @ApiModelProperty(value = "开票状态（0待开票,1已开票）")
    private Integer invoiceState;

    @ApiModelProperty(value = "开票日期")
    private String invoiceDate;

    @ApiModelProperty(value = "开票信息")
    private String invoiceRemark;

}
